{extend name="wap/b2c/base" /}
{block name="resources"}
<link type="text/css" rel="stylesheet" href="__TEMP__/{$style}/public/css/distribution.css">
<style>
.money-detail li {
    line-height: 22px;
	font-size:14px;
}
.money-detail .money {
    font-size: 14px;
}
</style>
{/block} 
{block name="goodsHead"}
<section class="head">
	<a class="head_back" href="APP_MAIN/member/index.html?shop_id={$shop_id}"><i class="icon-back"></i></a>
	<div class="head-title">推广中心</div>
</section>
{/block}

{block name="main"}
<div class="store-promote-top">
	{eq name="member_img" value="0"}
		<img src="__TEMP__/{$style}/public/images/member_default.png" class="user-portrait">
	{else/}
		<img src="__UPLOAD__/{$member_img}" class="user-portrait">
	{/eq}
	<h3>{$nick_name}&nbsp;({$promoter_info.promoter_shop_name})</h3>
	<div class="store-promote-identity">
		<img src="__TEMP__/{$style}/public/images/store_promote_vip.png"/>
		<span>{$promoter_info["promoter_level_info"]["level_name"]}</span>
	</div>
</div>
<div class="store-money">
	<div class="can-carry">
		<h2>可提现(元)</h2>
		<span class="withdrawal-money">{if $promoter_info["commission"]["commission_cash"] neq 0}{$promoter_info["commission"]["commission_cash"]}{else}0.00{/if}</span>
		<a href="APP_MAIN/Distribution/userAccountRecordsList.html?shop_id={$shop_id}">佣金明细</a>
	</div>
	<div class="money-detail">
		<ul>
			<li>
				<span>总佣金</span><br/>
				<span class="money">￥{if $promoter_info["commission"]["commission"] neq ''}{$promoter_info["commission"]["commission"]}{else/}0.00{/if}</span>
			</li>
			<li>
				<span>待审核金额</span><br/>
				<span class="money">￥{if $promoter_info["commission"]["commission_locked"] neq ''}{$promoter_info["commission"]["commission_locked"]}{else/}0.00{/if}</span>
			</li>
			<li>
				<span>已提现</span><br/>
				<span class="money">￥{if $promoter_info["commission"]["commission_withdraw"] neq ''}{$promoter_info["commission"]["commission_withdraw"]}{else/}0.00{/if}</span>
			</li>
			
		</ul>
	</div>
</div>
	<h1 class="store-personal-title">个人中心</h1>
	<hr class="segmentation-line">
	<div class="personal-menu">
		<ul>
			{foreach name="store_menu" item="menu"}
			<li>
				<a href="{$menu.href}">
					<img src="__TEMP__/{$style}/public/images/{$menu.src}"/>
					<h5>{$menu.title}</h5>
					<span>{$menu.value}</span>
				</a>
			</li>
			{/foreach}
		</ul>
	</div>
	
	<a href="{$store_adv['adv_url']}"><img src="__UPLOAD__/{$store_adv['adv_image']}" class="store-banner"/></a>
	
	<h1 class="store-personal-title">佣金统计</h1>
	<hr class="segmentation-line">
	<div class="store-commission-statistics">
		<ul>
			<li>
				<a href="APP_MAIN/distribution/userAccountRecordsDetail.html?shop_id={$shop_id}&type_id=1">
					<strong>￥{$promoter_info["commission"]["commission_promoter"]}</strong>
					<span>分销佣金</span>
				</a>
			</li>
			<li>
				<a href="APP_MAIN/distribution/userAccountRecordsDetail.html?shop_id={$shop_id}&type_id=2">
					<strong>￥{$promoter_info["commission"]["commission_region_agent"]}</strong>
					<span>区域代理佣金</span>
				</a>
			</li>
			<li>
				<a href="APP_MAIN/distribution/userAccountRecordsDetail.html?shop_id={$shop_id}&type_id=3">
					<strong>￥{$promoter_info["commission"]["commission_channelagent"]}</strong>
					<span>渠道代理分红</span>
				</a>
			</li>
<!-- 			<li> -->
<!-- 				<strong>￥{$promoter_info["commission"]["commission_promoter_team"]}</strong> -->
<!-- 				<span>团队分红</span> -->
<!-- 			</li> -->
			
			<li>
				<a href="APP_MAIN/distribution/userAccountRecordsDetail.html?shop_id={$shop_id}&type_id=4">
					<strong>￥{$promoter_info["commission"]["commission_partner"]}</strong>
					<span>股东分红</span>
				</a>
			</li>
			<li>
				<a href="APP_MAIN/distribution/userAccountRecordsDetail.html?shop_id={$shop_id}&type_id=5">
					<strong>￥{$promoter_info["commission"]["commission_partner_global"]}</strong>
					<span>全球分红</span>
				</a>
			</li>
		</ul>
	</div>
	{include file="wap/b2c/controlCopyRight"}
 {/block}
{block name="bottom"}{/block}